Principle 2: Give the model time to "think"
「モデルに"考える"時間を与える」
人間も複雑な質問を時間に追われたら間違える
Tactic 1: Specify the steps required to complete a task
code:手順を具体化したプロンプト例
Perform the following actions:
1 - Summarize the following text delimited by triple backticks with 1 sentence.
2 - Translate the summary into French.
3 - List each name in the French summary.
4 - Output a json object that contains the following keys: french_summary, num_names.
Text:
{text}
出力フォーマットを指定して構造化もできる!(Isaさんのオススメ)
プログラムで扱いやすい!
指定により単語の表記ゆれもない
code:手順を具体化した上で出力フォーマットを指定したプロンプト例
Use the following format:
Text: <text to summarize>
Summary: <summary>
Translation: <summary translation>
Names: <list of names in Italian summary>
Output JSON: <json with summary and num_names>
Tactic 2: Instruct the model to work out its own solution before rushing to a conclusion
採点のようなタスク
生徒の記述式の解答は正しいか(correct or incorrect)
code:モデル自身にまず解かせるプロンプト例
Your task is to determine if the student's solution is correct or not.
To solve the problem do the following:
- First, work out your own solution to the problem.
- Then compare your solution to the student's solution and evaluate if the student's solution is correct or not.
Don't decide if the student's solution is correct until
you have done the problem yourself.
Use the following format:
Question:
`
question here
`
Student's solution:
`
student's solution here
`
Actual solution:
`
steps to work out the solution and your solution here
`
Is the student's solution the same as actual solution \
just calculated:
`
yes or no
`
Student grade:
`
correct or incorrect
`
QuestionとStudent's solutionを与え、残りはモデルが出力する